Ahora vamos a comprobar la suposición del jugador contra la palabra real.

  • Ve a y arrastra if else dentro del loop.
  • Cambia la palabra en frente de ambos comandos .say() a announcer.
  • Utiliza el if statement para verificar si my_var es igual a word.
  • Crea un mensaje como, "You got it!" y otro mensaje debajo de else como "Try again."

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)